import service from '@/api/http';

const walletApi = {
  // 数字钱包 入参 currencyId
  getList: (params: object) => service.post(`/hall/playPayDrawingConfig/getList`, params),
  // 我也不知道这是啥接口 入参 currencyId
  getChannelLevel: (params: object) => service.post(`/hall/IdrPay/getChannelLevel`, params),
  // USD充值进行标识（TRC） 入参 ifJoin ifLevel
  userUsdPoint: (params: object) => service.post(`/hall/playGold/userUsdPoint`, params),
  // 个人层级活动 入参 channelCode currencyId
  getLevelPayStatus: (params: object) => service.post(`/hall/playHallActivityConfig/getLevelPayStatus`, params),
  /*
    BRL充值
    channelCode: this.channelCode,
    currencyId: this.coinItem.currencyId,
    ifJoin: this.checked1 ? 1 : 0,
    money: this.ruleBuyForm.rechargeMoney,
    bankCode: this.channelCode == 18 ? this.csjvnBankCode : "",
    returnUrl: window.location.href,
    ifLevel: this.checked1 ? 1 : 0,
  */
  threePay: (params: object) => service.post(`/hall/threePay/pay`, params),
  /*
    USDT充值
    code:"4"
  */
  depositQRcode: (params: object) => service.post(`/hall/playGold/initUserWallet`, params),
  /*
    开户银行
    channelCode: val,
    currencyId: this.currencyId,
  */
  getBankCodeList: (params: object) => service.post(`/hall/threePay/getBankCodeList`, params),
  /*
    提款 验证密码
  */
  findUserWithdrawPs: (params: object) => service.post(`/hall/playUserPersonal/findUserWithdrawPs`, params),
  /*
    非虚拟提现
  */
  cashAuth: (params: object) => service.post(`/hall/threePay/cashAuth`, params),
  /*
    虚拟提现
  */
  userTransfer: (params: object) => service.post(`/hall/playGold/userTransfer`, params),
};
export default walletApi;
